import request from '@/utils/request'

const hospitalPay = {
    // 查询列表
    getList(query) {
        return request({
            url: '/com.mmk.reservation.api.OpenMmkHospitalPaidBackProvider/1.0.0/listHospitalPaidOrders.html',
            method: 'post',
            data: query
        })
    },
    // 医院列表
    hospitalNameList(query) {
        return request({
            url: '/com.mmk.reservation.api.AdminHospitalProvider/1.0.0/hospitalDropDownWithPermission.html',
            method: 'post',
            data: query
        })
    },
    // 详情接口
    getDetails(query) {
        return request({
            url: '/com.mmk.reservation.api.OpenMmkHospitalPaidBackProvider/1.0.0/getHospitalPaidOrderDetail.html',
            method: 'post',
            data: query
        })
    },
    // 删除
    delete(query) {
        return request({
            url: '/com.mmk.reservation.api.OpenMmkHospitalPaidBackProvider/1.0.0/deletePaidOrder.html',
            method: 'post',
            data: query
        })
    },
    // 新增付款单提交
    addListSubmit(query) {
        return request({
            url: '/com.mmk.reservation.api.OpenMmkHospitalPaidBackProvider/1.0.0/createPaidOrder.html',
            method: 'post',
            data: query
        })
    },
    // 新增回款单
    addReceiveList(query) {
        return request({
            url: '/com.mmk.reservation.api.AdminRepaymentProvider/1.0.0/listRepayments.html',
            method: 'post',
            data: query
        })
    },
    // 提交编辑
    editSubmitInfo(query) {
        return request({
            url: '/com.mmk.reservation.api.OpenMmkHospitalPaidBackProvider/1.0.0/editPaidOrder.html',
            method: 'post',
            data: query
        })
    },
    // 导出
    handleExport(query) {
        return request({
            url: '/com.mmk.reservation.api.OpenMmkHospitalPaidBackProvider/1.0.0/exportHospitalPaidOrders.html',
            method: 'post',
            data: query,
            responseType: 'blob'
        })
    },
    // 银行卡号下拉表
    cardList(query) {
        return request({
            url: '/com.mmk.reservation.api.OpenMmkHospitalPaidBackProvider/1.0.0/getHospitalCards.html',
            method: 'post',
            data: query,
        })
    },
    // 银行卡号下拉表
    newAddReceiveList(query) {
        return request({
            url: '/com.mmk.reservation.api.AdminRepaymentProvider/1.0.0/listPaidBackRepayments.html',
            method: 'post',
            data: query,
        })
    }
}


export default hospitalPay
